package com.example.note_project.ui.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import androidx.annotation.Nullable;
import com.example.note_project.R;

/**
 * @Classname WelcomeActivity
 * @Description TODO
 * @Date 2020/11/22 0:26
 * @Created by yujun059
 */
public class WelcomeActivity extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        delay();
    }

    private void delay() {
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent intent;
                intent = new Intent(WelcomeActivity.this, LoginActivity.class);

                startActivity(intent);
                WelcomeActivity.this.finish();
            }
        }, 2000);
    }
}
